package com.doudou.eurekaConsumer.consumer.feign;

import com.doudou.eurekaConsumer.consumer.feign.impl.HelloServiceImpl;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Map;

/**
 * @author mazh
 * @date 2021-12-05 21:53
 */
@FeignClient(name="EUREKAPROVIDER",fallback = HelloServiceImpl.class)
@Component
public interface HelloInterface {

    @GetMapping("/helloMsg")
    public String getHelloMsg();

    @GetMapping("/hello")
    public String hello(@RequestParam("params") Map<String,Object> params);
}
